﻿namespace eg_023_多个case
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("输入");
            int prime = int.Parse(Console.ReadLine());

            switch (prime)
            {
                case 1:
                case 2:
                case 3:
                case 5:
                case 7:
                    Console.WriteLine("{0}为素数", prime);
                    break;
                case 4:
                case 6:
                case 8:
                case 9:
                case 10:
                    Console.WriteLine("{0}为合数", prime);
                    break;
                default:
                    break;
            }
        }
    }
}